import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.tong.ThymeleafBootStrap;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {ThymeleafBootStrap.class})
public class ResourceRead {
    @Test
    public void test() throws IOException {
        Enumeration<URL> resources = ResourceRead.class.getClassLoader().getResources("META-INF/spring.factories");
        while (resources.hasMoreElements()) {
            System.out.println(resources.nextElement());
        }
    }
}
